package cn.blb.service.edu.service;

import cn.blb.common.result.Result;
import cn.blb.service.edu.entity.Course;
import cn.blb.service.edu.entity.Teacher;
import cn.blb.service.edu.entity.dto.CourseDto;
import cn.blb.service.edu.entity.vo.CourseInfoForm;
import cn.blb.service.edu.entity.vo.CourseQuery;
import cn.blb.service.edu.entity.vo.TeacherQuery;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ccl
 * @since 2022-03-17
 */
public interface CourseService extends IService<Course> {


//    String saveCourseInfo(CourseInfoForm courseInfoForm);

    Result getCourseList(Page<CourseDto> page, QueryWrapper wrapper, CourseQuery courseQuery);

    CourseInfoForm getCourseInfoFormById(String id);

    void updateCourseInfoById(CourseInfoForm courseInfoForm);

    String saveCourseInfo(CourseInfoForm courseInfoForm);

    @Transactional(rollbackFor = RuntimeException.class)
    boolean removeCourseById(String id);

    CourseDto getCourseDtoById(String id);

    CourseDto backCourseDtoById(String id);
}
